//
//  DiscoverViewController.m
//  PopCar
//
//  Created by qianfeng on 15/10/20.
//  Copyright (c) 2015年 HXH. All rights reserved.
//

#import "DiscoverViewController.h"
#import "tacticView.h"
#import "treasureBoxView.h"

@interface DiscoverViewController ()

@end

@implementation DiscoverViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"发现";
    self.view.backgroundColor = [UIColor yellowColor];
    [self createView];
}

-(void)createView
{
    CGRect frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height+64);
    NSArray * array = @[[tacticView new],[treasureBoxView new]];
    NSArray * nameArray = @[@" 买车攻略 ",@"  百宝箱  "];
    self.scroll = [XLScrollViewer scrollWithFrame:frame withViews:array withButtonNames:nameArray withThreeAnimation:222];
    self.scroll.xl_topBackColor = [UIColor whiteColor];
    self.scroll.xl_sliderColor = [UIColor redColor];
    self.scroll.xl_sliderHeight = 3;
    self.scroll.xl_buttonColorNormal = [UIColor blackColor];
    self.scroll.xl_buttonColorSelected = [UIColor redColor];
    self.scroll.xl_topHeight = 40;
    self.scroll.xl_buttonFont = 16;
    self.scroll.xl_buttonToSlider = 10;
    [self.view addSubview:self.scroll];
}


@end








































